package com.tloss.admin.bean;

import java.io.Serializable;

import com.tloss.stdao.User;
import com.tloss.stdao.service.UserService;

public class AddUserBean implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 4229623694824642932L;
	String username;
	String password;
	UserService service;

	public AddUserBean() {
		service = new UserService();
	}

	

	public String getUsername() {
		return username;
	}



	public void setUsername(String username) {
		this.username = username;
	}



	public String getPassword() {
		return password;
	}



	public void setPassword(String password) {
		this.password = password;
	}



	public String addUser() {
		User user = new User();
		user.setUsername(username);
		user.setPassword(password);
		service.insert(user);
		return "success";
	}
}
